﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Logging;
namespace MySSH.Common.Log
{
    public class LogHelper
    {
        private static readonly ILog log = LogManager.GetLogger("ReflectionLayout");

        public static void Debug(LogMsg logMsg, Exception exception)
        {
            log.Debug(logMsg, exception);
        }
        public static void Debug(LogMsg logMsg)
        {
            LogHelper.Debug(logMsg, null);
        }


        public static void Error(LogMsg logMsg, Exception exception)
        {
            log.Error(logMsg, exception);
        }
        public static void Error(LogMsg logMsg)
        {
            LogHelper.Error(logMsg, null);
        }

        public static void Fatal(LogMsg logMsg, Exception exception)
        {
            log.Fatal(logMsg, exception);
        }
        public static void Fatal(LogMsg logMsg)
        {
            LogHelper.Fatal(logMsg, null);
        }

        public static void Info(LogMsg logMsg, Exception exception)
        {
            log.Info(logMsg, exception);
        }
        public static void Info(LogMsg logMsg)
        {
            LogHelper.Info(logMsg, null);
        }


        public static void Warn(LogMsg logMsg, Exception exception)
        {
            log.Warn(logMsg, exception);
        }
        public static void Warn(LogMsg logMsg)
        {
            LogHelper.Warn(logMsg, null);
        }

    }
}
